function plotFile( fileName )

scrsz = get(0,'ScreenSize');

 fid = fopen(fileName);

    data = fscanf(fid, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f', [27, Inf]);

    fclose(fid);

figure('OuterPosition',[scrsz(3)/20 scrsz(4)/20 scrsz(3)*0.9 scrsz(4)*0.9], 'Name', 'A configuration data');
subplot(4, 1, 1);
hold on;
plot(data(3,:), 'Color', [1.0 0.0 0.0]);
plot(data(7,:), 'Color', [0.0 1.0 0.0]);
plot(data(6,:), 'Color', [0.0 0.0 1.0]);
plot(data(11,:), 'Color', [1.0 0.8 0.0]);
plot(data(16,:), 'Color', [0.8 0.1 0.1]);
plot(data(20,:), 'Color', [0.1 0.8 0.1]);
plot(data(19,:), 'Color', [0.1 0.1 0.8]);
plot(data(24,:), 'Color', [0.8 0.6 0.1]);
legend('Highest starvation 0', 'Average starvation 0', 'Highest g starvation 0', 'Average g starvation 0', 'Highest starvation 1', 'Average starvation 1', 'Highest g starvation 1', 'Average g starvation 1', 'Location', 'EastOutside');
title('Starvation');
hold off;

subplot(4, 1, 2);
hold on;
plot(data(4,:), 'Color', [1.0 0.0 0.0]);
plot(data(5,:), 'Color', [0.0 1.0 0.0]);
plot(data(10,:), 'Color', [0.0 0.0 1.0]);
plot(data(17,:), 'Color', [0.8 0.1 0.1]);
plot(data(18,:), 'Color', [0.1 0.8 0.1]);
plot(data(23,:), 'Color', [0.1 0.1 0.8]);
legend('Group count 0', 'Group max size 0', 'Group avg size 0', 'Group count 1', 'Group max size 1', 'Group avg size 1', 'Location', 'EastOutside');
title('Groups');
hold off;

subplot(4, 1, 3);
hold on;
plot(data(9,:), 'Color', [1.0 0.0 0.0]);
plot(data(8,:), 'Color', [0.0 1.0 0.0]);
plot(data(13,:), 'Color', [0.0 0.0 1.0]);
plot(data(12,:), 'Color', [1.0 0.8 0.0]);
plot(data(22,:), 'Color', [0.8 0.1 0.1]);
plot(data(21,:), 'Color', [0.1 0.8 0.1]);
plot(data(26,:), 'Color', [0.1 0.1 0.8]);
plot(data(25,:), 'Color', [0.8 0.6 0.1]);
legend('Highest food 0', 'Average food 0', 'Highest g food 0', 'Average g food 0', 'Highest food 1', 'Average food 1', 'Highest g food 1', 'Average g food 1', 'Location', 'EastOutside');
title('Starvation');
hold off;

subplot(4, 1, 4);
hold on;
plot(data(27,:), 'r');
legend('Food left', 'Location', 'EastOutside');
hold off;

end

